import request from '@/utils/request'

// 查询推荐列表
export function listRecommend(query) {
  return request({
    url: '/system/recommend/list',
    method: 'get',
    params: query
  })
}

// 查询推荐详细
export function getRecommend(recomId) {
  return request({
    url: '/system/recommend/' + recomId,
    method: 'get'
  })
}

// 新增推荐
export function addRecommend(data) {
  return request({
    url: '/system/recommend',
    method: 'post',
    data: data
  })
}

// 修改推荐
export function updateRecommend(data) {
  return request({
    url: '/system/recommend',
    method: 'put',
    data: data
  })
}

// 删除推荐
export function delRecommend(recomId) {
  return request({
    url: '/system/recommend/' + recomId,
    method: 'delete'
  })
}

// 导出推荐
export function exportRecommend(query) {
  return request({
    url: '/system/recommend/export',
    method: 'get',
    params: query
  })
}